﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using TweetSayingsLibrary.App;
using TweetSayings.Constants;
using TweetSayingsLibrary.Xtensions;

namespace TweetSayings
{
    public partial class Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string callbackurl = TweetSayingsConstants.WEB_SERVER_URL + "/OAuthLogin.aspx";
            LoginButton.HRef = Current.SessionTrack.ApiCaller.UserAuthenticateUrl(callbackurl).FullUrlFromVirtualPath();
            
            //if (authUrl != string.Empty)
            //    litPage.Text = "<a class=\"bigbutton\" href=\"" + authUrl.FullUrlFromVirtualPath() + "\" onclick=\"return VerifyAgree('" + chkAgree.ClientID + "');\">Login</a>";
            //else
            //    litPage.Text = "<a class=\"bigbutton\" href=\"default.aspx?lo\">Retry<br/><p style=\"font-size:12px; margin: 4px 0px 0px 0px;\">Twitter is unreachable!</p></a>";
        }

    }
}